import java.util.Scanner;

public class Main5 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Shop myshop = new Shop(Integer.parseInt(scanner.nextLine()));
        myshop.coupons50.buy();
        System.out.println();
        myshop.coupons100.buy();
    }
}

class Shop {
    private int milkCount;
    InnerCoupons coupons50;
    InnerCoupons coupons100;

    public Shop(int milkCount) {
        this.milkCount = milkCount;
        this.coupons50 = new InnerCoupons(50);
        this.coupons100 = new InnerCoupons(100);
    }

    public int getMilkCount() {
        return milkCount;
    }

    public void setMilkCount(int milkCount) {
        this.milkCount = milkCount;
    }


    class InnerCoupons {
        public int value;

        public InnerCoupons(int value) {
            this.value = value;
        }

        public void buy () {
            System.out.println("使用了面值为" + value + "的购物券进行支付");
            milkCount -= (value / 50);
            System.out.print("牛奶还剩" + milkCount + "箱");
            return;
        }

    }

}
